<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
</head>
<body>
    <table>
        <tr>
            <td>姓名</td>
            <td>密码</td>
            <td>角色</td>
            <td>操作</td>
        </tr>

        <foreach name="list" item="val">
        <tr>
            <td>{$val['name']}</td>
            <td>{$val['pass']}</td>
            <td>{$val['role']}</td>

            <td><a href='Del.php?id={$attr[0]}'>删除</a>
                <a href='Modify.php?id={$attr[0]}'>修改</a> </td> 
        </tr>
        </foreach>

    </table>

</body>
</html>